<?php

/*
 * Copyright (C) 2015 xiuno.com
 */

!defined('DEBUG') AND exit('Access Denied.');

// hook index_start.php

$action = param(1, 'index');

// SEO
$header['title'] = $conf['sitename']; // site title
$header['keywords'] = ''; // site keyword
$header['description'] = $conf['sitebrief']; // site description
$_SESSION['fid'] = 0;

// hook index_end.php
if ($action == 'index') {

	$sortlist = sort_list_cache();
	$shoplist = shop__find(array('review'=>'1'),array('sid'=>'DESC'),1,4);
	//print_r($shoplist);
	include _include(APP_PATH . 'view/htm/index.htm');
} elseif ($action == 'city') {
	$c = param(2, -1);
	if ($c != -1) {
		$_SESSION["bbs_city"] = $c;
	}

	$u_city = city_read_cache($c);

	$citylist = city_read_all_cache();
	$plist = province_read_all_cache();

	include _include(APP_PATH . 'view/htm/city.htm');
} elseif ($action == 'adadsadsdadnaskdbaskdhasd'){
	user_thread_quota_updata_day();
}

?>